class CommentOn extends React.Component{
	// 状态提升
	render(){
		const {contentList} = this.props;
		return (
			<div className="commentOn">
				<div style={{display:contentList.length===0?"block":"none"}} className="noContent">暂无留言</div>
				<div className="messList">
					{
						contentList.map(item=> (
							<div key={item._id} className="reply">
								<p className="replyContent">{item.content}</p>
								<p className="operation">
									<span className="replyTime">{item.addTime}</span>
									<span className="handle">
				                        <a href="#" className="top">{item.topNum}</a>
				                        <a href="#" className="down_icon">{item.downNum}</a>
				                        <a href="#" className="cut">删除</a>
				                    </span>
								</p>
							</div>
						))
					}
				
				</div>
				<div className="page">
					<a href="#" className="active">1</a>
					<a href="#">2</a>
					<a href="#">3</a>
				</div>
			</div>
		)
	}
}